package server;

/**
 * Class containing the connection states.
 * @author Jeff
 */
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;

public class ConnectionState {
    private Socket clientSocket;
    private ObjectInputStream inStream;
    private ObjectOutputStream outStream;

    /**
     * Constructs a new ConnectionState
     * 
     * @param clientSocket
     *            the socket to connect to
     * @param inStream
     *            the stream for inputs
     * @param outStream
     *            the stream to write to
     */
    public ConnectionState(Socket clientSocket, ObjectInputStream inStream,
            ObjectOutputStream outStream) {
        this.clientSocket = clientSocket;
        this.inStream = inStream;
        this.outStream = outStream;
    }

    /**
     * @return the client's socket
     */
    public Socket getClientSocket() {
        return clientSocket;
    }

    /**
     * @return the input stream
     */
    public ObjectInputStream getInStream() {
        return inStream;
    }

    /**
     * @return the output stream
     */
    public ObjectOutputStream getOutStream() {
        return outStream;
    }

}
